package com.yun.blog.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * title        : FriendLink
 * projectName  : dantouBlog-back
 * description  : 友情链接
 * author       : simple
 * date         : 2022/11/23下午7:51
 */

/*
* -- 友情连接
CREATE TABLE `blog_link`
(
    `link_id`          int UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT COMMENT '友链表主键id',
    `link_category_id` int                      NOT NULL DEFAULT 0 COMMENT '友链类别id',
    `link_name`        varchar(50)              NOT NULL COMMENT '网站名称',
    `link_url`         varchar(200)             NOT NULL COMMENT '网站链接',
    `link_description` varchar(200)             NOT NULL COMMENT '网站描述',
    `link_rank`        int(0)                   NOT NULL DEFAULT 0 COMMENT '用于列表排序',
    `is_deleted`       boolean                  NOT NULL DEFAULT FALSE COMMENT '是否删除',
    `create_time`      datetime(0)              NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '添加时间'
);
*/

@Data
@TableName("blog_link")
public class FriendLink {

    @TableId(type = IdType.AUTO)
    private Integer linkId;

    private Integer linkCategoryId;

    private String linkName;
    private String linkUrl;
    private String linkDescription;
    private Integer linkRank;
    @JsonFormat(pattern = "yyyy年MM月dd日 hh:mm:ss",timezone="GMT+8")
    private Date createTime;
    private Boolean isShow;

}
